package other.mvvm.activity.src.app_package.forget

fun forgetAcitivityKt(
        applicationPackage:String?,
        activityClass:String,
        packageName:String
)="""
package ${packageName}
import android.os.Bundle
import cn.logicalthinking.mvvm.base.BaseActivity
import androidx.lifecycle.Observer
import ${applicationPackage}.R
import ${packageName}.${activityClass}ViewModel
import ${applicationPackage}.databinding.Activity${activityClass}Binding
import cn.logicalthinking.mvvm.utils.clickDelay
/**
* 忘记密码
**/
class ${activityClass}Activity : BaseActivity<Activity${activityClass}Binding, ${activityClass}ViewModel>() {
 

    override fun Activity${activityClass}Binding.initView() {
        tvForget.clickDelay {
            var email = edEmail.text.toString()
            var code = edCode.text.toString()
            mViewModel.versionCode(email, code) {
                val address = edEmail.text.toString()
                val bundle = Bundle()
                bundle.putString("address", address)
                start(Forget2Activity::class.java, bundle)
            }
        }

        tvGetCode.clickDelay {
            getVersionCode()
        }
    }

    override fun initLiveDataObserve() {  .
        
        
    }

    override fun initData() {
        
    }
    
   
} 
"""